	
/****** Object:  Stored Procedure CountriesInsert    Script Date: Monday, December 10, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spCountriesInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spCountriesInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: spCountriesInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 12/10/2007 10:20:43 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spCountriesInsert
	@CountryCode varchar(4),
	@CountryName varchar(100),
	@CountryID int output
AS

INSERT INTO [Countries] 
(
	[CountryCode],
	[CountryName]
) 
VALUES 
(
	@CountryCode,
	@CountryName
)

SELECT @CountryID = @@IDENTITY

GO
	
